const { defineConfig } = require('@vue/cli-service');

module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	productionSourceMap: false,
	devServer: {
		proxy: {
			'/mmdb': {
				target: 'https://wx.maoyan.com',
				changeOrigin: true,
			},
			'/ajax': {
				target: 'https://m.maoyan.com',
				changeOrigin: true,
			},
			'/api': {
				target: 'https://m.maoyan.com',
				changeOrigin: true,
				pathRewrite: {
				  '^/api': '',
				},
			},
			// '/ci': {
			// 	target: 'https://apis.netstart.cn/maoyan/index/filterCinemas',
			// 	changeOrigin: true,
			// }
		},
	},
});
